/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package API;

import javax.microedition.lcdui.Graphics;

/**
 *
 * @author mrbao
 */
public class Label extends Item {

    public Label(String text, int x, int y) {
        this.text = text;
        this.x = x;
        this.y = y;
    }

    public int getHeight() {
        return font.getHeight();
    }

    public void Paint(Graphics g) {
        g.setFont(font);
        g.setColor(colorText);
        g.drawString(text, x, y, 0);
    }
}
